package com.erp.gather.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.erp.gather.domain.ErpSellerStoreGroup;
import com.erp.gather.domain.bo.ErpSellerStoreGroupBo;
import com.erp.gather.domain.vo.ErpSellerStoreGroupVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户店铺商品分组Mapper接口
 *
 * @author erp
 * @date 2023-11-08
 */
public interface ErpSellerStoreGroupMapper extends BaseMapperPlus<ErpSellerStoreGroupMapper, ErpSellerStoreGroup, ErpSellerStoreGroupVo> {

    Page<ErpSellerStoreGroupVo> queryPageList(@Param("page")Page<ErpSellerStoreGroupVo> build, @Param("bo") ErpSellerStoreGroupBo bo);

    List<ErpSellerStoreGroup> selectSynchronizeGroup();

    List<ErpSellerStoreGroupVo> queryChildGroupByGroupId(String groupId);

    List<ErpSellerStoreGroup> queryAvailableGroupsByStoreId(@Param("storeId")Long storeId);
}
